package com.itgan.userbackendmanagement.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.itgan.userbackendmanagement.pojo.dto.LoginDTO;
import com.itgan.userbackendmanagement.pojo.dto.RegisterDTO;
import com.itgan.userbackendmanagement.pojo.entity.User;

import javax.servlet.http.HttpServletRequest;

/**
* @author 24057
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2024-08-28 20:44:18
*/
public interface UserService extends IService<User> {

    void addUser();

    /**
     * 登录
     *
     * @param loginDTO
     * @param request
     */
    User doLogin(LoginDTO loginDTO, HttpServletRequest request);

    int register(RegisterDTO registerDTO);

    User getSafetyUser(User user);

    /**
     * 用户注销
     *
     * @param request
     * @return
     */
    int userLogout(HttpServletRequest request);
}
